import request from '@/utils/request'





// 列表
export function list(params) {
  return request({
    url: '/insight/indexManage/findAll',
    method: 'get',
    params: params
  })
}



// 添加
export function add(params) {
  return request({
    url: '/insight/indexManage/insrtIndex',
    method: 'post',
    data: params,
    headers: {
      'Content-Type': 'application/json;charset:utf-8'
    }
  })
}

// 删除
export function del(id) {
  return request({
    url: `/insight/indexManage/deleteIndexById?id=${id}`,
    method: 'delete'
  })
}


// 修改
export function edit(params) {
  return request({
    url: '/insight/indexManage/updateIndex',
    method: 'put',
    data: params,
    headers: {
      'Content-Type': 'application/json;charset:utf-8'
    }
  })
}





